package com.whalehearing.tingyou.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.whalehearing.tingyou.validate.group.AddGroup;
import com.whalehearing.tingyou.validate.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.util.List;

/**
 * @author: shensh
 * @Desc:
 * @create: 2025-03-22 14:34
 **/
@Data
@ApiModel(description = "门店认证项目请求体")
public class StoreCertificateDTO {

    @ApiModelProperty("申请认证ID")
    @NotNull(message = "申请认证ID不能为空",groups ={UpdateGroup.class})
    private Long id;

    @NotNull(message = "门店ID不能为空",groups ={AddGroup.class,UpdateGroup.class})
    private Long storeId;

    @NotBlank(message = "认证项目不能为空",groups ={AddGroup.class,UpdateGroup.class})
    @ApiModelProperty("认证项目")
    private String project;

    @NotNull(message = "请上传证书材料", groups = {AddGroup.class})
    @Size(min = 1, max = 9, message = "请上传1-9张证书材料图片", groups = {AddGroup.class, UpdateGroup.class})
    @ApiModelProperty("认证项目材料图片(1-9张)")
    private List<String> certificateMaterials;

    @Size(max = 200, message = "认证说明最多200个字符")
    @ApiModelProperty("认证说明/备注(最多200字)")
    private String instructions;
}

